updateShopCar()

function updateShopCar(){
	document.getElementById('top_car_count').innerHTML = getNum();
}

function getNum(){
	var shoplist = JSON.parse(getCookie('shoplist'));
	var number = 0;
	for (var i in shoplist){
		number += shoplist[i].count;
	}
	return number;
}